//
//  XJCommunitySearchResultCell.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/7/6.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJCommunitySearchResultCell.h"
@interface XJCommunitySearchResultCell()
@property (weak, nonatomic) IBOutlet UILabel *comunityNameLb;
@property (weak, nonatomic) IBOutlet UILabel *distanceLb;

@end

@implementation XJCommunitySearchResultCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setModel:(XJCommunityModel *)model {
    self.comunityNameLb.text = model.name;
    
    self.distanceLb.text = [NSString stringWithFormat:@"%.1fm",[model.distance floatValue]];
}



@end
